package com.acme.bankapp.domain.accounts;

import com.acme.bankapp.exception.NotEnoughFundsException;

import java.io.Serializable;

public interface Account extends Serializable, Comparable<Account> {

    double getBalance();

    double maximumAmountToWithdraw();

    void deposit(double amount);

	void withdraw(double amount) throws NotEnoughFundsException;
}
